
<div id="content">
    <div id="title_content">Khách hàng <span style="font-weight:bold; font-style: italic;"><?php echo $khach_hang->ten_khach_hang; ?></span></div>
    <?php if ($this->session->flashdata('error')): ?>
        <div class="affiche_erreur">
            <?php echo $this->session->flashdata('error'); ?>
        </div>
    <?php endif; ?>


    <style>
        .customer_infor {
            border: 1px solid black;
            height:165px;
            margin-bottom: 20px;
            width: 300px;
        }

        .customer_infor .post_number {
            padding-left: 10px;
            background: #8f8a7f;
            height: 20px;
            color: #ffffff;
            font-size: 16px;
        }

        .customer_infor .post_content {
            margin-left: 10px;
        }

        .customer_infor .post_content ul li{
            float:none !important;
        }

        .customer_infor .post_content ul li span.label{
            margin-right: 10px;
            font-family: Arial, sans-serif;
            font-weight: bold;
            color: #222222;

        }


    </style>


    <div class="customer_infor">

        <div class="post_number">Thông tin khách hàng</div>
        <div class="post_content">
            <ul>
                <li>
                    <span class="label">Họ tên :</span>
                    <span class="value"><?php echo $khach_hang->ten_khach_hang; ?></span>
                </li>
                <li>
                    <span class="label">Công ty :</span>
                    <span class="value"><?php echo $khach_hang->ten_cong_ty; ?></span>
                </li>
                <li>
                    <span class="label">Điện thoại :</span>
                    <span class="value"><?php echo$khach_hang->dien_thoai; ?></span>
                </li>
                <li>
                    <span class="label">Email :</span>
                    <span class="value"><?php echo$khach_hang->email; ?></span>
                </li>
            </ul>
        </div>
    </div>
    <!-- End .customer_infor -->

    <style>
        .wrapper_pay_infor {
            margin-bottom: 10px;

        }

        .wrapper_pay_infor h1{
            margin-bottom: 10px;
            font-family: Arial, sans-serif;
            color: #c8c8c8;
            font-weight: normal;
        }


        .pay_infor_content_item h2{
            font-family: Arial, sans-serif;
            font-weight: normal;
            background: #8f8a7f;
            color: #ffffff;
        }

        .pay_infor_content_item{
            float:left;
            width: 280px;
            border: 1px solid black;
        }

        .pay_infor_content_item ul li{
            float:none !important;
        }

        .pay_infor_content_item ul li span.label {
            margin-right: 10px;
            font-weight: bold;
        }

        .pay_infor_content_item ul li span.no_pay {
            color: red;
        }

        .pay_infor_content_item ul li span.pay {
            color: green;
        }


    </style>

    <div class="wrapper_pay_infor">
        <h1>
            Thông tin thanh toán
        </h1>

        <div class="wrapper_pay_infor_content">
            <ul>
                <?php foreach ($data as $aRow): ?> 
                    <li class="pay_infor_content_item">

                        <ul>

                            <li>
                                <span class="label">Loại dịch vụ :</span>
                                <span class="value"><?php echo $aRow['ten_dich_vu']; ?></span>
                            </li>

                            <li>
                                <span class="label">Ngày bắt đầu :</span>
                                <span><?php echo date('d/m/Y', $aRow['ngay_bat_dau']); ?></span>
                            </li>
                            <li>
                                <span class="label">Ngày kết thúc :</span>
                                <span><?php echo date('d/m/Y', $aRow['ngay_ket_thuc']); ?></span>
                            </li>
                            <li>
                                <span class="label">Ngày thanh toán :</span>
                                <span><?php echo date('d/m/Y', $aRow['ngay_tra_tien']); ?></span>
                            </li>
                            <li>
                                <span class="label">Số tiền :</span>
                                <span><?php echo $aRow['so_tien']; ?></span>
                            </li>
                            <li>
                                <span class="label">Tình trạng :</span>
                                <?php if ($aRow['tinh_trang_tra_tien'] != 1): ?>
                                    <span class="no_pay">Chưa thanh toán</span>
                                <?php else: ?>
                                    <span class="pay">Đã thanh toán</span>
                                <?php endif; ?>
                            </li>

                            <li>
                                <a href="<?php echo site_url('thanh_toan/cap_nhat_thanh_toan' . '/' . $aRow['thanh_toan_id']); ?>">Cập nhật</a>
                            </li>
                        </ul>


                    </li>


                    </li>
                    <?php
                endforeach;
                ?>
            </ul>


        </div><!-- End .wrapper_pay_infor_content -->


    </div><!-- End .wrapper_pay_infor -->





</div>
<!--END content-->
